﻿<div class="widget green">
    <div class="widget-title">
        <h4><i class="icon-reorder"></i>Menu</h4>
    </div>
    <div class="widget-body">

        <div id="failureResult" class="alert alert-block alert-error" style="display: none">
            <h4 class="alert-heading">Error!</h4>
            <p id="errortext">
            </p>
        </div>

        <div class="alert alert-block alert-success" style="display: none" id="successResult">
            <h4 class="alert-heading">Success!</h4>
            <p>
                Items was successfully saved.
            </p>
        </div>

        <form action="/admin/menuitem/edit/"
            class="search_form general_form"
            data-ajax="true"
            data-ajax-failure="failureSave"
            data-ajax-method="POST"
            data-ajax-success="successSave"
            id="editMenuItemForm"
            method="post">

            <input data-val="true"
                data-val-number="The field Id must be a number."
                data-val-required="Требуется поле Id."
                id="MenuItem_Id"
                name="MenuItem.Id"
                type="hidden"
                value="21">

            <input data-val="true"
                data-val-date="The field CreatedAt must be a date."
                data-val-required="Требуется поле CreatedAt."
                id="MenuItem_CreatedAt"
                name="MenuItem.CreatedAt"
                type="hidden"
                value="12.05.2014 10:44:40">

            <div class="container-fluid">
                <div class="row-fluid">
                    <div class="span1 min-px">
                        <p class="pull-right">Title:</p>
                    </div>
                    <div class="span10">
                        <input class="text large"
                            data-val="true"
                            data-val-required="*"
                            id="MenuItem_Title"
                            name="MenuItem.Title"
                            type="text"
                            value="Page with Rating">
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span1 min-px">
                        <p class="pull-right">Menu Type:</p>
                    </div>
                    <div class="span10">
                        <select data-val="true"
                            data-val-number="The field MenuId must be a number."
                            data-val-required="*"
                            id="MenuItem_MenuId"
                            name="MenuItem.MenuId">
                        </select>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span1 min-px">
                        <p class="pull-right">Menu Parent:</p>
                    </div>
                    <div class="span10">
                        <select data-val="true"
                            data-val-number="The field ParentId must be a number."
                            id="MenuItem_ParentId"
                            name="MenuItem.ParentId">
                        </select>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span1 min-px">
                        <label class="pull-right">Icon:</label>
                    </div>
                    <div class="span10">
                        <input id="MenuItem_Icon"
                            name="MenuItem.Icon"
                            type="text" value="">
                    </div>
                    <div id="pictures_block">
                        <span class="icon selected" value=""></span>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span1 min-px">
                        <p class="pull-right">Is external URL:</p>
                    </div>
                    <div class="span10">
                        <input data-val="true"
                            data-val-required="Требуется поле IsExternalUrl."
                            id="MenuItem_IsExternalUrl"
                            name="MenuItem.IsExternalUrl"
                            type="checkbox"
                            value="true"
                            checked="checked">
                        <input name="MenuItem.IsExternalUrl" type="hidden" value="false">
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span1 min-px">
                        <p class="pull-right">Visible:</p>
                    </div>
                    <div class="span10">
                        <input checked="checked"
                            data-val="true"
                            data-val-required="Требуется поле Visible."
                            id="MenuItem_Visible"
                            name="MenuItem.Visible"
                            type="checkbox" value="true">
                        <input name="MenuItem.Visible" type="hidden" value="false">
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span1 min-px">
                        <p class="pull-right">Navigate URL:</p>
                    </div>
                    <div class="span10">
                        <input class="text large"
                            id="MenuItem_NavigateUrl"
                            name="MenuItem.NavigateUrl"
                            type="text"
                            value="/pages/page-with-rating">
                    </div>
                </div>
                <div class="row-fluid" style="display: none;">
                    <div class="span1 min-px">
                        <p class="pull-right">Page ID:</p>
                    </div>
                    <div class="span10">
                        <select data-val="true"
                            data-val-number="The field EntryId must be a number."
                            id="MenuItem_EntryId"
                            name="MenuItem.EntryId">
                        </select>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span1 min-px">
                        <p class="pull-right">Sort order:</p>
                    </div>
                    <div class="span10">
                        <input data-val="true"
                            data-val-number="The field SortOrder must be a number."
                            data-val-required="Требуется поле SortOrder."
                            id="MenuItem_SortOrder"
                            name="MenuItem.SortOrder"
                            type="text"
                            value="0">
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span11 offset1">
                        <div class="submit_link">
                            <button type="submit" class="btn btn-success" name="save_menu"><i class="icon-ok icon-white"></i>Save</button>
                            <button class="btn btn-inverse" onclick="resetFields(this); return false;"><i class="icon-refresh icon-white"></i>Reset</button>
                            <button class="btn btn-inverse" onclick="history.back()"><i class="icon-ban-circle icon-white"></i>Back</button>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
</div>

